home *** CD-ROM | disk | FTP | other *** search
/ CU Amiga Super CD-ROM 23 / CU Amiga - Super CD-ROM 23 (June 1998).iso / CUCD / Graphics / STIMP_noise / Install < prev    next >
Text File  |  1998-02-24  |  6KB  |  247 lines

  1. ;
  2. ; Skript zur Installation von STIMP_noise 1.01
  3. ; inklusive Unterstuetzung fuer Ultraconv
  4. ; Version 1.02, 24.02.98
  5. ; (c) 1998 Stefan Diener
  6. ;
  7.  
  8. (set @pretend 0)
  9. (set @user-level 2)
  10. (set @default-dest "")
  11.  
  12. (complete 0)
  13.  
  14. (if (= @language "deutsch")
  15.  (
  16.    ; deutsche Textausgaben
  17.    (set #yes "Ja")
  18.    (set #no "Nein")
  19.    (set #gruss "\n\n\n\nSTIMP_noise 1.01\n© 1997/98 by Stefan Diener\n\n\nWillkommen zur Installation von STIMP_noise 1.01 !\nDieses Skript wird STIMP_noise auf Ihrer Festplatte installieren.\n")
  20.    (set #destimsg "Wo wollen Sie STIMP_noise installieren ?\n(Ein Verzeichnis namens STIMP wird dort automatisch erzeugt.)")
  21.    (set #addlines "\nZwei Zeilen müssen zur Datei S:User-Startup hinzugefügt werden:\n")
  22.    (set #fertig "\nSTIMP_noise ist nun auf Ihrer Festplatte in folgendem\nVerzeichnis installiert:\n")
  23.    (set #whichcpu "Für welche CPU sollen optimierte Versionen\ninstalliert werden ?")
  24.    (set #reallyuconv "Möchten Sie die Programme auch von\nUltraconv aus benutzen ?")
  25.  )
  26.  (
  27.    ; english text output
  28.    (set #yes "Yes")
  29.    (set #no "No")
  30.    (set #gruss "\n\n\n\nSTIMP_noise 1.01\n© 1997/98 by Stefan Diener\n\n\nWelcome to the STIMP_noise 1.01 installation !\nThis script will install STIMP_noise on your harddisk.\n")
  31.    (set #destimsg "Where do you want to install STIMP_noise ?\n(A directory called STIMP will be automaticly created.)")
  32.    (set #addlines "\nTwo lines have to be added to your S:User-Startup:\n")
  33.    (set #fertig "\nSTIMP_noise is now installed on your harddisk at:\n")
  34.    (set #whichcpu "For which CPU shall I install an optimised version ?")
  35.    (set #reallyuconv "Do you want to use the programs\ntogether with Ultraconv too ?")
  36.  )
  37. )
  38.  
  39.  
  40. ; kleine Begruessung
  41. (message #gruss
  42. )
  43.  
  44. ; Zielpfad ermitteln
  45. (set #destidir
  46.   (askdir
  47.     (prompt #destimsg)
  48.     (help @askdir-help)
  49.     (default "GFX:")
  50.   )
  51. )
  52.  
  53. (complete 10)
  54.  
  55. (set #dstdir
  56.   (tackon #destidir "STIMP")
  57. )
  58.  
  59. ; ggf. Verzeichnis fuer STIMP erst erzeugen
  60. (if (= (exists #dstdir) 0)
  61.  (makedir #dstdir)
  62. )
  63.  
  64. (complete 20)
  65.  
  66. ; alle Pfade definieren
  67. (set #binpath
  68.   (tackon #dstdir "bin")
  69. )
  70.  
  71. (set #docpath
  72.   (tackon #dstdir "doc")
  73. )
  74.  
  75. (set #helppath
  76.   (tackon #dstdir "help")
  77. )
  78.  
  79. (set #sourcepath
  80.   (tackon #dstdir "source")
  81. )
  82.  
  83. ; Dokumentation kopieren
  84. (copyfiles
  85.   (source "doc")
  86.   (dest #docpath)
  87.   (pattern "#?")
  88. )
  89.  
  90. (complete 30)
  91.  
  92. ; Help-Dateien kopieren
  93. (copyfiles
  94.   (source "help")
  95.   (dest #helppath)
  96.   (pattern "#?")
  97. )
  98.  
  99. (complete 40)
  100.  
  101. ; Quelltexte kopieren
  102. (copyfiles
  103.   (source "source")
  104.   (dest #sourcepath)
  105.   (pattern "#?")
  106. )
  107.  
  108. (complete 60)
  109.  
  110. (set #linetoadd1
  111.   (cat "Assign STIMP: " #dstdir)
  112. )
  113.  
  114. (set #linetoadd2 "Assign C: STIMP:bin add")
  115.  
  116. ; Assign-Zeilen in S:User-Startup einfuegen
  117. (startup "STIMP"
  118.   (prompt #addlines
  119.           #linetoadd1 "\n"
  120.           #linetoadd2)
  121.   (help "These lines have to be added in order to make the STIMP programs run properly !")
  122.   (command #linetoadd1 "\n" #linetoadd2)
  123. )
  124.  
  125. ; auch jetzt schon Assign wirksam werden lassen
  126. (makeassign "STIMP" #dstdir)
  127.  
  128. ; hier muesste stehen: "Assign C: STIMP:bin add",
  129. ; wurde aber in S:User-Startup eingefuegt und ist
  130. ; nach einem Neustart verfuegbar ...
  131. ; (makeassign "C" "STIMP:bin")
  132.  
  133. (complete 70)
  134.  
  135. ; automatische Auswahl der CPU
  136. (set #mycpu (database "cpu"))
  137. (if (= #mycpu 68000) (set #cpu 0))
  138. (if (= #mycpu 68010) (set #cpu 0))
  139. (if (= #mycpu 68020) (set #cpu 0))
  140. (if (= #mycpu 68030) (set #cpu 1))
  141. (if (= #mycpu 68040) (set #cpu 1))
  142. (if (= #mycpu 68060) (set #cpu 1))
  143.  
  144. ; Benutzer nach optimaler Programmvariante fragen
  145. (set #cpuver (askchoice (choices "68000" "68030+68882" "PowerPC")
  146.                (prompt #whichcpu)
  147.                (help   "The 68000 versions will work on all Amigas.\n"
  148.                        "If you have a MC68030 (or higher) with FPU,\nuse the 68030+68882 versions !\n"
  149.                        "If you are so lucky owning a PPC, select it !\n")
  150.                (default #cpu)
  151.              )
  152. )
  153.  
  154. (complete 80)
  155.  
  156. ; jeweilige Programmvariante kopieren
  157. (if (= #cpuver 0)
  158.   ; also nur 68000
  159.   (copyfiles
  160.     (source "bin")
  161.     (dest #binpath)
  162.     (pattern "#?")
  163.   )
  164. )
  165.  
  166. (if (= #cpuver 1)
  167.   ; doch schon 68030+68882
  168.   (copyfiles
  169.     (source "bin.030882")
  170.     (dest #binpath)
  171.     (pattern "#?")
  172.   )
  173. )
  174.  
  175. (if (= #cpuver 2)
  176.   ; wow, PowerPC
  177.   (copyfiles
  178.     (source "bin.ppc")
  179.     (dest #binpath)
  180.     (pattern "#?")
  181.   )
  182. )
  183.  
  184. (complete 90)
  185.  
  186.  
  187. ; Ultraconv-Unterstuetzung erwuenscht ?
  188. (set #uconv (askchoice (choices #yes #no)
  189.               (prompt #reallyuconv)
  190.               (help "If you are a registered user of Ultraconv, I suggest to select YES !")
  191.               (default 0)
  192.             )
  193. )
  194.  
  195. (if (= #uconv 0)
  196.   ; Ultraconv-Unterstuetzung ist erwuenscht !
  197.   ; this is a little bit more complicated,
  198.   ; so I give it up to a shell script
  199.  
  200.   (if (< (getversion "UConv:Ultraconv") 196608)
  201.     (
  202.       ; noch nicht V3, also muss Zahl der Filter neu berechnet werden
  203.  
  204.       (if (= #cpuver 0)
  205.         ; also nur 68000
  206.         (execute "Ultraconv/AddNewFilters.Skript")
  207.       )
  208.  
  209.       (if (= #cpuver 1)
  210.         ; doch schon 68030+68882
  211.         ; trotzdem wie beim 68000
  212.         (execute "Ultraconv/AddNewFilters.Skript")
  213.       )
  214.  
  215.       (if (= #cpuver 2)
  216.         ; wow, PowerPC
  217.         (execute "Ultraconv/AddNewFilters.Skript.ppc")
  218.       )
  219.     )
  220.     (
  221.       ; mindestens V3, also nur Joinen von zwei Dateien
  222.  
  223.       (if (= #cpuver 0)
  224.         ; also nur 68000
  225.         (execute "Ultraconv/AddNewFilters.Skript.V3")
  226.       )
  227.  
  228.       (if (= #cpuver 1)
  229.         ; doch schon 68030+68882
  230.         ; trotzdem wie beim 68000
  231.         (execute "Ultraconv/AddNewFilters.Skript.V3")
  232.       )
  233.  
  234.       (if (= #cpuver 2)
  235.         ; wow, PowerPC
  236.         (execute "Ultraconv/AddNewFilters.Skript.V3.ppc")
  237.       )
  238.     )
  239.   )
  240. )
  241.  
  242. (complete 100)
  243.  
  244. ; das war es schon -> Verabschiedung
  245. (message #fertig #dstdir "\n\n\nHave fun !"
  246. )
  247.